package com.errol.generic.file.core.pojo;

import java.io.File;

/**
 * Created by Errol on 17/4/16.
 * 文件存储路径
 *
 * @author zhang xiao bin
 * @version v1.0
 * @date 2020/10/21
 * @since v4.7.6
 */
public enum Filepath {

    /**
     * 文件存储路径
     */
//    INIT(null),
//    CACHE(null),
    TEMP(Frequency.DAILY),
    TEMPLATE(null),
//    UPLOAD(null),
//    DOWNLOAD(null),
    ;

    private final Frequency frequency;

    Filepath(Frequency frequency) {
        this.frequency = frequency;
    }

    public Frequency getFrequency() {
        return frequency;
    }

    public String getPath() {
        return this.toString().toLowerCase() + File.separator;
    }
}
